{ //=========Macro generated from canvas: cptvspt/ //========= (Wed Feb 25 10:23:12 2009) by ROOT version5.14/00f TCanvas *cptvspt = new TCanvas("cptvspt", "",5,22,800,800); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); cptvspt->Range(-0.604248,-5.18546,2.92587,-2.48275); cptvspt->SetFillColor(10); cptvspt->SetBorderMode(0); cptvspt->SetBorderSize(2); cptvspt->SetLogx(); cptvspt->SetLogy(); cptvspt->SetTickx(); cptvspt->SetTicky(); cptvspt->SetLeftMargin(0.2); cptvspt->SetRightMargin(0.08); cptvspt->SetTopMargin(0.08); cptvspt->SetBottomMargin(0.2); cptvspt->SetFrameFillColor(0); cptvspt->SetFrameBorderMode(0); cptvspt->SetFrameBorderMode(0); TGraphErrors *gre = new TGraphErrors(19); gre->SetName("gldapr08"); gre->SetTitle("gldapr08"); gre->SetLineColor(2); gre->SetMarkerColor(2); gre->SetMarkerStyle(20); gre->SetMarkerSize(0.7); gre->SetPoint(0,1.1006,0.000970922); gre->SetPointError(0,0,1.05083e-05); gre->SetPoint(1,2.10301,0.000498727); gre->SetPointError(1,0,4.75821e-06); gre->SetPoint(2,3.10386,0.000325792); gre->SetPointError(2,0,2.76393e-06); gre->SetPoint(3,4.1043,0.000247224); gre->SetPointError(3,0,1.99312e-06); gre->SetPoint(4,5.10457,0.000199297); gre->SetPointError(4,0,1.64997e-06); gre->SetPoint(5,6.10474,0.00017039); gre->SetPointError(5,0,1.39833e-06); gre->SetPoint(6,7.10487,0.000152342); gre->SetPointError(6,0,1.23838e-06); gre->SetPoint(7,8.10497,0.000134818); gre->SetPointError(7,0,1.08763e-06); gre->SetPoint(8,10.1051,0.000107191); gre->SetPointError(8,0,8.98588e-07); gre->SetPoint(9,20.1054,7.18686e-05); gre->SetPointError(9,0,5.42511e-07); gre->SetPoint(10,30.1055,5.6795e-05); gre->SetPointError(10,0,4.79558e-07); gre->SetPoint(11,40.1055,4.85946e-05); gre->SetPointError(11,0,3.87794e-07); gre->SetPoint(12,60.1056,4.13713e-05); gre->SetPointError(12,0,3.08399e-07); gre->SetPoint(13,70.1056,3.91512e-05); gre->SetPointError(13,0,2.81777e-07); gre->SetPoint(14,80.1056,3.72717e-05); gre->SetPointError(14,0,2.75192e-07); gre->SetPoint(15,100.106,3.47065e-05); gre->SetPointError(15,0,2.56338e-07); gre->SetPoint(16,200.106,3.09855e-05); gre->SetPointError(16,0,2.23293e-07); gre->SetPoint(17,300.106,3.04275e-05); gre->SetPointError(17,0,2.2549e-07); gre->SetPoint(18,400.106,2.981e-05); gre->SetPointError(18,0,2.04535e-07); TH1 *_h11 = new TH1F("_h11","Momentum resolution w. B dependent Cd",100,0.99054,440.007); _h11->SetMinimum(1e-05); _h11->SetMaximum(0.003); _h11->SetDirectory(0); _h11->SetStats(0); _h11->SetMarkerStyle(20); _h11->SetMarkerSize(0.7); _h11->GetXaxis()->SetTitle("p_{T}/GeV"); _h11->GetXaxis()->SetNdivisions(506); _h11->GetXaxis()->SetLabelFont(42); _h11->GetXaxis()->SetLabelOffset(0.01); _h11->GetXaxis()->SetLabelSize(0.06); _h11->GetXaxis()->SetTitleSize(0.07); _h11->GetXaxis()->SetTitleOffset(1.2); _h11->GetXaxis()->SetTitleFont(42); _h11->GetYaxis()->SetTitle("#\sigma_{1/p_{T}}/GeV^{-1}"); _h11->GetYaxis()->SetNdivisions(506); _h11->GetYaxis()->SetLabelFont(42); _h11->GetYaxis()->SetLabelOffset(0.015); _h11->GetYaxis()->SetLabelSize(0.06); _h11->GetYaxis()->SetTitleSize(0.07); _h11->GetYaxis()->SetTitleOffset(1.4); _h11->GetYaxis()->SetTitleFont(42); gre->SetHistogram(_h11); gre->Draw("pla"); gre = new TGraphErrors(19); gre->SetName("gldprim_v04"); gre->SetTitle("gldprim_v04"); gre->SetLineColor(1); gre->SetLineWidth(2); gre->SetMarkerColor(1); gre->SetMarkerStyle(23); gre->SetMarkerSize(0.7); gre->SetPoint(0,1.1006,0.000932879); gre->SetPointError(0,0,1.11995e-05); gre->SetPoint(1,2.10301,0.000484416); gre->SetPointError(1,0,4.69949e-06); gre->SetPoint(2,3.10386,0.000323607); gre->SetPointError(2,0,2.66541e-06); gre->SetPoint(3,4.1043,0.000240124); gre->SetPointError(3,0,1.99416e-06); gre->SetPoint(4,5.10457,0.000195218); gre->SetPointError(4,0,1.61571e-06); gre->SetPoint(5,6.10474,0.000172275); gre->SetPointError(5,0,1.43194e-06); gre->SetPoint(6,7.10487,0.000154849); gre->SetPointError(6,0,1.23968e-06); gre->SetPoint(7,8.10497,0.000136435); gre->SetPointError(7,0,1.07745e-06); gre->SetPoint(8,10.1051,0.00011432); gre->SetPointError(8,0,8.79813e-07); gre->SetPoint(9,20.1054,7.32005e-05); gre->SetPointError(9,0,5.60877e-07); gre->SetPoint(10,30.1055,5.92012e-05); gre->SetPointError(10,0,4.45795e-07); gre->SetPoint(11,40.1055,4.94164e-05); gre->SetPointError(11,0,3.76473e-07); gre->SetPoint(12,60.1056,4.11617e-05); gre->SetPointError(12,0,2.98008e-07); gre->SetPoint(13,70.1056,3.86496e-05); gre->SetPointError(13,0,2.93603e-07); gre->SetPoint(14,80.1056,3.73913e-05); gre->SetPointError(14,0,2.67665e-07); gre->SetPoint(15,100.106,3.48906e-05); gre->SetPointError(15,0,2.45166e-07); gre->SetPoint(16,200.106,3.14946e-05); gre->SetPointError(16,0,2.30563e-07); gre->SetPoint(17,300.106,2.9934e-05); gre->SetPointError(17,0,2.79735e-07); gre->SetPoint(18,400.106,2.98554e-05); gre->SetPointError(18,0,2.15187e-07); TH1 *_h1fit2 = new TH1F("_h1fit2","Fitting momentum resolution (gldprim_v04)",100,0.99054,440.007); _h1fit2->SetMinimum(1e-05); _h1fit2->SetMaximum(0.002); _h1fit2->SetDirectory(0); _h1fit2->SetStats(0); _h1fit2->SetLineWidth(2); _h1fit2->SetMarkerStyle(20); _h1fit2->SetMarkerSize(0.7); _h1fit2->GetXaxis()->SetTitle("Pt(GeV/c^{2})"); _h1fit2->GetXaxis()->SetNdivisions(506); _h1fit2->GetXaxis()->SetLabelFont(42); _h1fit2->GetXaxis()->SetLabelOffset(0.015); _h1fit2->GetXaxis()->SetLabelSize(0.06); _h1fit2->GetXaxis()->SetTitleSize(0.07); _h1fit2->GetXaxis()->SetTitleOffset(1.11); _h1fit2->GetXaxis()->SetTitleFont(42); _h1fit2->GetYaxis()->SetTitle("#Delta#kappa( 1/(GeV/c^{2})"); _h1fit2->GetYaxis()->SetNdivisions(506); _h1fit2->GetYaxis()->SetLabelFont(42); _h1fit2->GetYaxis()->SetLabelOffset(0.015); _h1fit2->GetYaxis()->SetLabelSize(0.06); _h1fit2->GetYaxis()->SetTitleSize(0.07); _h1fit2->GetYaxis()->SetTitleOffset(1.1); _h1fit2->GetYaxis()->SetTitleFont(42); _h1fit2->GetZaxis()->SetLabelFont(42); _h1fit2->GetZaxis()->SetLabelOffset(0.015); _h1fit2->GetZaxis()->SetLabelSize(0.06); _h1fit2->GetZaxis()->SetTitleSize(0.07); _h1fit2->GetZaxis()->SetTitleOffset(1.1); _h1fit2->GetZaxis()->SetTitleFont(42); gre->SetHistogram(_h1fit2); gre->Draw("pl"); gre = new TGraphErrors(19); gre->SetName("j4ldc_v04"); gre->SetTitle("j4ldc_v04"); gre->SetLineColor(4); gre->SetLineWidth(2); gre->SetMarkerColor(4); gre->SetMarkerStyle(24); gre->SetMarkerSize(0.7); gre->SetPoint(0,1.1006,0.000851471); gre->SetPointError(0,0,1.12595e-05); gre->SetPoint(1,2.10301,0.000438014); gre->SetPointError(1,0,4.13064e-06); gre->SetPoint(2,3.10386,0.000300807); gre->SetPointError(2,0,2.62112e-06); gre->SetPoint(3,4.1043,0.00022083); gre->SetPointError(3,0,1.96842e-06); gre->SetPoint(4,5.10457,0.000183045); gre->SetPointError(4,0,1.50217e-06); gre->SetPoint(5,6.10474,0.000161417); gre->SetPointError(5,0,1.31519e-06); gre->SetPoint(6,7.10487,0.000145115); gre->SetPointError(6,0,1.14384e-06); gre->SetPoint(7,8.10497,0.000128077); gre->SetPointError(7,0,9.7386e-07); gre->SetPoint(8,10.1051,0.000101694); gre->SetPointError(8,0,7.63674e-07); gre->SetPoint(9,20.1054,7.3629e-05); gre->SetPointError(9,0,5.70719e-07); gre->SetPoint(10,30.1055,5.91903e-05); gre->SetPointError(10,0,4.43672e-07); gre->SetPoint(11,40.1055,5.07295e-05); gre->SetPointError(11,0,3.93447e-07); gre->SetPoint(12,60.1056,4.30235e-05); gre->SetPointError(12,0,3.16357e-07); gre->SetPoint(13,70.1056,4.06806e-05); gre->SetPointError(13,0,2.95587e-07); gre->SetPoint(14,80.1056,3.90455e-05); gre->SetPointError(14,0,2.82735e-07); gre->SetPoint(15,100.106,3.62384e-05); gre->SetPointError(15,0,2.58803e-07); gre->SetPoint(16,200.106,3.28199e-05); gre->SetPointError(16,0,2.3764e-07); gre->SetPoint(17,300.106,3.20551e-05); gre->SetPointError(17,0,2.26935e-07); gre->SetPoint(18,400.106,3.18701e-05); gre->SetPointError(18,0,2.274e-07); // gre->GetListOfFunctions()->Add(fave); gre->Draw("pl"); TLegend *leg = new TLegend(0.29,0.71,0.5,0.9,NULL,"brNDC"); // leg->SetTextFont(22); leg->SetTextSize(0.043); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL","GLD","ple"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLDPrime","ple"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","GLD4LDC","ple"); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); TLegend *leg1 = new TLegend(0.52,0.69,0.62,0.89,NULL,"brNDC"); // leg->SetTextFont(22); leg1->SetTextSize(0.032); leg1->SetLineColor(1); leg1->SetLineStyle(1); leg1->SetFillColor(1); leg1->SetFillStyle(0); leg1->SetBorderSize(0); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.0 T, R_{TPC}= 1978 mm)",""); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=3.5 T, R_{TPC}= 1740 mm)",""); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg1->AddEntry("NULL","(B=4.0 T, R_{TPC}= 1540 mm)",""); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.25); entry->SetTextAlign(12); entry->SetTextColor(1); leg1->Draw(); TLatex * tex = new TLatex(2,0.00002,"a)"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); cptvspt->Modified(); cptvspt->cd(); cptvspt->SetSelected(cptvspt); cptvspt->SaveAs("mgld.eps"); cptvspt->SaveAs("mgld.pdf"); cptvspt->SaveAs("mgld.gif"); }